cv = geGetEditCellView()
   wid = hiGetCurrentWindow()
   pmoat = dbGetOverlaps(cv cv~>bBox list("PMOAT" "drawing") 0:30)
   nmoat = dbGetOverlaps(cv cv~>bBox list("NMOAT" "drawing") 0:30) 

leSetEntryLayer("metal2") 
leGetEntryLayer

leHiCreatePath() 

alignSelectionMode
alignApplySpacings  useRulesFile

hiGetCurrentField(hiGetCurrentForm())

form->alignModeOption->value="Set reference to align preselected objects"
form->direction->value = "Horizontal"
form->alignObjOption->value="Layer Bbox"
form->layerField->value
form->alignSeparation="14" 
form->setNewReference

_leAlignSSModeCB()

leHiAlign()

_leAlignSSNewRefCB()


leAlignSelSetForm->alignModeOption->value = "Set reference to align preselected objects"
leAlignSelSetForm->alignModeOption->value = "Set reference and select objects to be aligned"
leAlignSelSetForm->direction->value = "Vertical"
leAlignSelSetForm->alignObjOption->value = "Layer Center"
leAlignSelSetForm->alignObjOption->value = "Layer BBox"
leAlignSelSetForm->alignSeparation->value = "2.0"
_leAlignSSNewRefCB()


ca marche
hiGetPoint(hiGetCurrentWindow())

f you simply want to find the overlaps of two (or several) different
layers (any purposes) you can use nconc.

(nconc (dbGetTrueOverlaps cvID rectBox '("m1" "drawing") 32)
           (dbGetTrueOverlaps cvID rectBox '("fill" "drawing") 32)) 

coordList = nil
foreach(item geGetSelSet()
    printf("Selected item coordinate: %L\n" item~>xy)
    coordList = cons(item~>xy coordList)
)


